package com.test.pdproject.service;

import com.test.pdproject.constant.Page;
import com.test.pdproject.constant.PageData;
import com.test.pdproject.dao.DaoSupport;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: weidongge
 * @Date: 2018/8/15 17:10
 * @Description:
 */
@Service
public class UserService {
    @Resource(name = "daoSupport")
    private DaoSupport dao;
    public PageData findById(PageData pd) throws Exception {
        return (PageData) dao.findForObject("UserMapper.findById", pd);
    }
}
